#include <stdio.h>
using namespace std;

class ParkingSystem {
   private:
    int big, medium, small;

   public:
    ParkingSystem(int big, int medium, int small) {
        this->big = big;
        this->medium = medium;
        this->small = small;
    }

    bool addCar(int carType) {
        if (carType == 1) {
            if (this->big > 0) {
                this->big -= 1;
                return true;
            }
            return false;

        } else if (carType == 2) {
            if (this->medium > 0) {
                this->medium -= 1;
                return true;
            }
            return false;
        } else{
            if (this->small > 0) {
                this->small -= 1;
                return true;
            }
            return false;
        }
    }
};

int main() {
    return 0;
}